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