Using Regexp.prototype.test() instead of String.prototype.endsWith()

endsWith() is only supported in Firefox. Also changed some logging lines that
were causing some undefined lookups. Adding jszip to the package.json file.