Searching in javascript/atoms