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