Javascript program for class.