Some smaller js edits