Changed the way the JS accesses the SVG's dimensions to work with FF.