fix IE bug, class is a reserved word. cant be used as object key