Made routes dynamic. Updated error handling. Wrote Array.includes polyfill.