enhancements in search method

js file includes
updated documentation