changing javascript