Add code for main.js, create directory "es" and index