JavaScript changes