JSHint cleanup and IE support