js class sample