updating the main.js with one compiled with simple optimizations