Update for js