added compile function
compile now handles jsonDom elements
compile now handles arrays
renamed tests
refactoring
compile now handles attributes
compile now handles child nodes
class is a reserved word as an object property in some engines
compile now handles HTML attribute. added complex test (taken from bootstrap)