Simple classes for javascript