resolve JSLint issues