Fix some jshint warnings

I didn't touch any of the "Unexpected use" warnings.

Seven warnings
74	Unexpected use of '&'.
76	Unexpected use of '&'.
77	Use '===' to compare with '0'.
82	Unexpected use of '<<'.
115	Use '!==' to compare with '0'.
175	Use '!==' to compare with '0'.
182	Use '===' to compare with '0'.