Base: Fix issue with javascript search method