Fix jshint warnings introduced in #308.
Merge pull request #310 from NICTA/jshint

Fix jshint warnings introduced in #308.