fix JSLint issues

switching from JSHint