Added require JS to output file

Added the function line to add reqiure js to the output. Also put
in a new module option that would specify what the requirejs module
should be named.