Added requirejs and nodejs compatibility on module files