JSHint and other style cleanups