Minor JS clean-up

- Replace semi-colon on insertionMethod definition so other vars are defined
- Remove some white-space
Merge pull request #151 from ethier/master

Minor JS clean-up