binary-search library unnecessary in browser environment