text: mainModule.config(function ($stateProvider, $urlRouterProvider, $httpProvider) {
  
      $httpProvider.defaults.headers.common = {};
      $httpProvider.defaults.headers.post = {};
      $httpProvider.defaults.headers.put = {};
      $httpProvider.defaults.headers.get = {};
      $httpProvider.defaults.headers.patch = {};
  
      if ('addEventListener' in document) {
          document.addEventListener('DOMContentLoaded', function () {
              FastClick.attach(document.body);
          }, false);
      }
  
      // For any unmatched url, send to /route1
      $urlRouterProvider.otherwise("/thermometer");
      $stateProvider
          .state('home', {
              url: "/home",
              templateUrl: "partials/home.html",
              controller: "HomeController"
          })
          .state('thermometer', {
              url: "/thermometer",
              templateUrl: "partials/thermometer.html",
              controller: "ThermometerController"
          })
  
  
  });