Change all references to properties.class to properties['class'] for IE8