Fixed broken JS on pg_search view