PRES-6262 JSHint fixes