update in js file