added js to html and updated js file