Node.js practice with local images and redirecting based on urls