Split up nodes.js into components