added fix for Javascript based search