Updated js file with the latest changes