JavaScript Event-sourcing Resources