js file now working