javascript class created