main.js for zip