fix sliding effect, add js/main.js