index.php, search.js: bugfix: #6

Was returning to app's root after searching by pressing enter