Activity Service JS Refactoring to extend entities from AtomEntity