makes replaceString function and click event in google