Modify Dojs for Native javascript.

Major modification on dojs.