js class for work