Use simpler RequireJS syntax

This is the alternative RequireJS syntax that lets you use a `require`
function (like CommonJS-style) inside the `define`.

I also removed some unused dependencies from a couple of modules.