Documentation for options.moduleName with a unit test

When creating a parser with `js` for `options.moduleType`, the variable for the parser can be specified with `options.moduleName`. This pull request updates the documentation with this information and provides a unit test.