Using JSHint option unused:strict.

Removed some old code thanks to JSHint's pickiness.