Update helper.js

Added normalizeBoolean function.