javscript file for window.html