add js dir and main.js