Update requirejs to compatible version, remove r.js
Fixes #14450. Remove CommonJS+AMD syntax.