Fix JSLint warning.
Properly wire API routes to the backend URLs.