Searching in javascript/bidi-support