base: requirejs improvements

This is the format from https://www.npmjs.org/package/grunt-jsbeautifier