Minimum fake jQuery
var $ = function(q, f){ return [][(f? 'forEach': 'slice')].call(document.querySelectorAll(q), f || 0); };