Utils = function(){
  
  /* Private Members */
  var defaultDocumentName = "index";

  /* See http://stackoverflow.com/questions/901115/get-querystring-values-with-jquery */
  var urlParams = {};
  var e,
  a = /\+/g, // Regex for replacing addition symbol with a space
  r = /([^&;=]+)=?([^&;]*)/g,
  d = function (s) { return decodeURIComponent(s.replace(a, " ")); },
  q = window.location.search.substring(1);
  while (e = r.exec(q)) {
    urlParams[d(e[1])] = d(e[2]);
  }
  
  /* Public Members */
  return {
    getDocumentName : function() {
      var documentLocation = document.location.href;
      var end = (documentLocation.indexOf("?") == -1) ? documentLocation.length : documentLocation.indexOf("?");
      var fileName = documentLocation.substring(documentLocation.lastIndexOf("/")+1, end);
      return fileName.length == 0 ? defaultDocumentName : fileName;
    },
    getQueryParam : function(key) {
      return urlParams[key];
    }
  };
  
    
}();
