code: function(){
              return {
                  width:(!isNaN(window.innerWidth))?window.innerWidth:document.documentElement.clientWidth||0,
                  height:(!isNaN(window.innerHeight))?window.innerHeight:document.documentElement.clientHeight||0
              };
          }
docs: Retrieve the inner dimensions of the window. This does not work in jQuery.
  
  @type Object
  @return An object literal having width and height attributes.