Refactor: NodeJS stuff