Created index.js, unglued mimetype.js and merged route functions