fix part of #561
Use plain `if/else` statements when there's no assignment.
Switch to `(function){..})()`.
Remove JSHint's `expr` rule.
Remove `devel:true` and use `window.console` instead.
Minor style changes.
Run `grunt`.