bug fixes for requirejs
Merge pull request #23 from revathskumar/requirejs-fix

bug fixes for requirejs