Some examples of JavaScript for class