fixing a typo on the README
updating gitignore to ignore vim swap files
General Cleanup

- whitespace
- variable hoisting
- using the power of jquery where relevant