added js directory and main.js