Continue on switching from php to node

+clean code