single page application using javascript - Search