d.run(function () {

        // your application code goes here

        // this will throw error