Update router.js

For imageMagick on heroku