Update html2js.js

options.module can be a function which is used to generate (or not generate) the target module name.
added unit test and doc to PR#20