JSHint fixes to ensure code compiles well.