Cross-browser compatibility tweaks. Fixes #1.

    * shim Object.keys for IE8
    * don't call Array.sort, call Array.prototype.sort, for webkit/IE.
Merge pull request #2 from 6a68/issue_1_x-browser_compat

Cross-browser compatibility tweaks. Fixes #1.