Update app.js

Switch error and res arguments for handleError function to use NodeJS convention of passing errors as the first argument.