Upgraded jshinting.
Code cleanup.