JSLint cleanup

thanks to @petebacondarwin advices