Small edits to JS
Added search parameters