cosmetic: clean up code

This needs to be rewritten in Elm.
Merge branch 'master' of https://github.com/elm-lang/elm-reactor