Edit RequireJS snippet to support namespacing

The r.js optimizer checks for a predefined if statement to rewrite when
running with the 'namespace' option set.
Merge pull request #225 from terinjokes/requirejs

RequireJS namespacing support