Searching in java/script