added requirejs support
Merge pull request #303 from stream7/master

Add support for AMD/requirejs