RequireJS works from web and from r.js/gruntjs now.