Added comments and Predefined search to index.js and index.html