fixed the path to the js file and fixed the win references to point to window