Minor JS clean-up

- Replace semi-colon on insertionMethod definition so other vars are defined
- Remove some white-space