deps-js-generator fixes

Very minor error when generating a deps.js file using the default DepsJSGenerator.  It had an off by 1 error and was using the full file path instead of the module names for required.