Allow specifying the width/height for `resizeWindow`

Existing behaviour was ignoring parameters if the
element had a parent, causing the game to resize
incorrectly.
Fix package.json

Trailing comma was throwing a parse error
Merge pull request #2 from hughsk/resizing

Allow specifying the width/height for `resizeWindow`