js: Conform with jQuery JavaScript Style Guide

* Update JSHint configuration and enforce new rules (mostly quote marks and removing unused variables).

* Whitespace (no space after last object/function argument, no space after "function" operator in anonymous functions).

* Remove dates from @author (#289).