js formatting edits