JSLint compatibility updates.
Merge branch 'master' into gh-pages