A javascript class