Significant JSLint updates, code style improvements