$ = function(selector) { return document.querySelectorAll(selector)[0]; }