Fixed 'Uncaught TypeError: Cannot read property 'copy' of undefined' JS error caused by angular-route dependency not being declared correctly