updates to the js

minor spacing/whitespace fixes + jQuery optimization

warning: I didn't test this; you should before you merge.
Merge pull request #9 from jkudish/patch-5

updates to the js