fixed js file for site to work