Change JS load order.

Addresses #102