added js file for main page