Make sure navigator has non-negative width/height

Older versions of IE throw if we try to assign a negative width/height.

Fixes #24.
Add TODO comment about magic number
Merge pull request #26 from Ventero/patch-1

Make sure navigator has non-negative width/height