Update requirejs to compatible version, remove r.js
Fixes #14450. Remove CommonJS+AMD syntax.
Remove comment
Unify build script capabilities between branches. Specifically, added a special comment pragma for removing certain lines.