Searching for javascript bug