Cross-browser compatibility tweaks. Fixes #1.

* shim Object.keys for IE8
* don't call Array.sort, call Array.prototype.sort, for webkit/IE.

Verified working in webkit. /me shrugs at IE.

:beers: