Fixed problem with using Require.js

add global context (for compression with dependencies)

fixed #35