if(typeof $ != "function"){ var $ = function (id) { return "string" == typeof id ? document.getElementById(id) : id; } }