Transferred script to javascript.html