Use javascript modules via requirejs to avoid name clashes
This is a pretty important ticket since it’s inconvenient to use
“old-style”
namespacing of global objects.
(from redmine: issue id 1922, created on 2014-10-14 by root, closed on 2016-01-26)