javascript day 1 update