corrected .js and .html file