Generalized function, set server.js to send boilerplate instead of in the function