Searching in javascript/atoms/html5