Node.js project that is experiment in workflow within in a class by using events