added js file and modified index.html