Some quick fixes to make it pass JSHint
Merge pull request #134 from Financial-Times/jshint

Some quick fixes to make it pass JSHint