Renaming node.js to app.js - I think this is probably a more common practice.
Putting the json output as its own function for future flexibility