fixed html page and added code for javascript