fixes some of the JSLint problems