Browsing: JavaScript algorithms for interviews