Cosmetic JavaScript edits