CPAC JS class check