JavaScript Class Definition samples