compatibility with require.js and browsers
Merge pull request #2 from imsky/master

Compatibility with require.js and browsers