google maps api v3 uncaught typeError: Cannot read property 'offsetWidth' of null
===

Im going through a HTML5 book that includes geolocation, which I've been able to figure out. However, the next step is to include a map using the google maps API. I've already gotten an API key and have structured everything just like the book and the google documentation said, but I can't seem to figure out this problem. On line 29 in the main.js file on http://ilanshomekitchen.x10.mx/projects/Geolocation/, there is an: "Uncaught TypeError: Cannot  read property 'offsetWidth' of null. I've searched google and so far nothing has worked. I even defined the height and width of the map in the css file on the site.


Any ideas?