Defined search buttons in javascript

Someday we can defined these per-project.