copied raw Google code into separate JS files