Change JS load order.

Addresses #115
Merge pull request #116 from mbrookes/patch-1

Change JS load order.