consistent JS style, use JSHint instead of JSLint and make it fairly happy