fixed all JSLint shenanigans