Add main.js for packaging