fix JSLint problems