fix JSHint warnings

jshint also complains about line 13, it expects a comparison but instead gets an assignment but it looks like that's by design.