Code for http://stackoverflow.com/questions/22175456/typeerror-cannot-read-property-offsetwidth-of-null-when-using-google-maps-wit