Refactored routing.js
Updated index.html