Updated requirejs compatibility
Merge pull request #7 from posva/update

Updated requirejs compatibility