Some jsLint cleanup

Hey there. Looks great, but I found a few simple (and complex) mistakes. These are the simple ones, and I'll open issues for the more complicated ones.