replace typeof target == 'boolean' with  _.isBoolean(target) in the static.js