update to js file