JSHint: Equality, unused arguments and other minor remnants.

After this jshint passes.

Change-Id: Iee640a1d485ac23caaa783b0069ce9f1616db9ad