class to learn javascript