update for js