Fix directory structure, add main.js