ESB POC Javascript code review suggestions