// avoid `console` errors in browsers that lack a console. (function() { var method; var noop = function () {}; var methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupcollapsed', 'groupend', 'info', 'log', 'marktimeline', 'profile', 'profileend', 'table', 'time', 'timeend', 'timeline', 'timelineend', 'timestamp', 'trace', 'warn' ]; var length = methods.length; var console = (window.console = window.console || {}); while (length--) { method = methods[length]; // only stub undefined methods. if (!console[method]) { console[method] = noop; } } }()); // place any jquery/helper plugins in here.