A Javascript entity with support a events and export toJSON very simple that can be extended using prototype chain.