updating JavaScript