added requirejs support

Added support for requirejs module