A little library to manipulate the dom
jstiller.components.dom.parse('<div><p>text</p></div><button>button</button>');var existingNode = jstiller.components.dom.find('body').firstChild,
newNode = jstiller.components.dom.create.element('div');
jstiller.components.dom.insert.element(newNode).before(existingNode);var existingNode = jstiller.components.dom.find('body').firstChild,
newNode = jstiller.components.dom.create.element('div');
jstiller.components.dom.insert.element(newNode).after(existingNode);var existingNode = jstiller.components.dom.find('body').firstChild,
newNode = jstiller.components.dom.create.element('div');
jstiller.components.dom.insert.element(newNode).into(existingNode);var existingNode = jstiller.components.dom.create.element('div');
jstiller.components.dom.insert.className('class').to(existingNode);var existingNode = jstiller.components.dom.create.element('div');
jstiller.components.dom.insert.text('text ...').before(existingNode);var existingNode = jstiller.components.dom.create.element('div');
jstiller.components.dom.insert.text('text ...').after(existingNode);var existingNode = jstiller.components.dom.create.element('div');
jstiller.components.dom.insert.text('text ...').into(existingNode);var mainNode = jstiller.components.dom.find('main'),
newMainNode = jstiller.components.dom.find('main');
jstiller.components.dom.replace.element(mainNode).by(newMainNode);var mainNode = jstiller.components.dom.find('main');
jstiller.components.dom.replace.text('text ...').of(mainNode);var mainNode = jstiller.components.dom.find('main');
jstiller.components.dom.remove.element(mainNode);var mainNode = jstiller.components.dom.find('main');
jstiller.components.dom.remove.className('class').from(mainNode);var mainNode = jstiller.components.dom.create.element('div', {
align: 'left'
});var mainNode = jstiller.components.dom.find('main');var mainNode = jstiller.components.dom.find('main', {
quantity: 'all'
});var mainNode = jstiller.components.dom.find('main', {
context: document,
});var mainNode = jstiller.components.dom.find('main', {
quantity: 'one',
context: document,
});