Converted to hapi.js for node server