function $(id) { return document.getElementById(id); } function $t(tag, con) { return (con || document).getElementsByTagName(tag); } function $$(expr, con) { return (con || document).querySelectorAll(expr); }