Bug 1002413 - [Build] Refactor webapp-zip.js 

https://bugzilla.mozilla.org/show_bug.cgi?id=1002413