fix accessing to 'class' property for IE8

In IE8 'class' is reserved word
polyfill Object.key for non-ECMA5 browsers (IE<9, FF<4,SF<5, OP<12)
Merge pull request #4 from waitxd/master

IE8 fix from waited