ref #4028 - jsHint corrections