Fix initial layout bugs in both Chrome and Firefox

The Chrome bug is a regression from the version hosted at http://quartz.github.io/Chartbuilder/ as far as I can tell. 
The Firefox fix improves support and may fully resolve Issue #9.