  jQuery.fn.log = function (msg) {
   if (typeof console !="undefined") {
      console.log("%s: %o", msg, this);
    }
    return this;
  };
  