JSHint updates.

Passes JSHint tests now.