Moved code to ./routes.js

that is all.

carry on.