Fixed bug where javascript replace for ajax search with multiple terms wouldn't work in IE.