Fixed some things jsLint was complaining about.