Adds --requirejs support

Initial take on a PR to add RequireJS support back in the form of a command-line argument. Feel free to critique!