 
     initialize: ->
         app.isMobile = touchDevice = 'ontouchstart' of document.documentElement
+        app.setupGlobalErrorHandling()
 
         app.$page = $('#page')
         app.page = app.$page[0]

            @resolveCountdown += 1
            @collections[r.collection_key] = new r.collection
            @collections[r.collection_key].fetch
                error: ->
                    vex.dialog.alert("An error occurred while trying to load Singularity #{ r.error_phrase }.")
                    resolve()
                success: ->

        @resolveCountdown += 1
        @state = new State
        @state.fetch
            suppressErrors: true
            error: -> vex.dialog.alert('An error occurred while trying to load the Singularity state.')
            success: -> resolve()

        resources = [{
