Fixed some lint warnings in helpers.js

The object literal notation {} is preferrable.
Confusing use of '!'.
Expected '===' and instead saw '=='.
Missing semicolon.