Core Js file - updated