Switched js load order

I think the load order is preventing the gallery from operating properly