Extracted js to own file; made search form a sidebar; added navbar; refactoring; sanitized query term before sending as params