fixes all JSLint problems