Refactored Routing.js

Hi, 

i refactored the routing.js file a bit ;)