optimized selectors in libraryjs