Change JS load order.

Addresses #115