Ecma datamodel

Final state of the test module javascript:
https://gist.github.com/feyzo/b25e9d0730477d2fbe15

Got the idea from here:
http://www.w3.org/TR/xmlschema-1/#d0e1654

What do you think?