Moved view type stuff into its own module
Fixed the ordering of javascript

Ensures jquery is loaded prior to heatdash.js.