Changed stageWidth and stageHeight to num

this makes it compatible with Chromium 36