a nano alternative to jQuery's element selection functionality