Updated Js file