Add requirejs module support

Fixes #10.
Merge pull request #11 from jbuck/requirejs

Add requirejs module support