Minimal Javascript selector engine