small update to js file