class work with js