Fixed js error because class is reserved