JS parsing fix for IE8 due to reserved keyword

Changing "class" property access from dot to bracket notation as class is a reserved keyword in older versions of IE