CQRS JavaScript