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)