Added viewportSize from Tyson Matanich for more accurately returning the viewport's width
Removing viewportSize to fix issue in Firefox and eliminate excessive repaints
Added event object for context.