JavaScirpt Library for searching an array