JS linting, use event listeners, complete `fixUp` escape function

oh, ok, cool