updated teh js file