address some of the issues from the code review for the pull request: https://github.com/Khan/live-editor/pull/212