Adding support for requirejs

Adding support for requirejs