js search page fix