Change Array Index Value Javascript Editor Windows