Searching in javascript/mac/internal