javascript update. mock