Updating js handling