First attempt of compiling main.js