A JavaScript implementation of the quick find algorithm