Abhinav made the javascript functions

consists the javascript and the basic html page.