Remove use of word 'class' in object, which can result in bugs in some browsers (e.g. IE8)