more js stylistic cleanups