Reorganize explorer.backbone.js such that functions are defined before they are used