Magic. GenieJS was built to bring behavior found in Alfred to JavaScript. Register functions associated with keywords and then you can do a search with keywords and GenieJS will miraculously return them in a logical order depending on the keyword given. Very easy to add to your app and improve user experience and it's only 2 KB uglified.