add main.js and fix css for preload