Syntax errors for Firefox

Fixed syntax errors in Firefox. Fixed issues related to screen
dimensions used for SVG.