js update to working