added information to javascript and modified html to link up with the .js file.