Remove hard-coded URLs from templates client-side code.

Closes #13