Fixed a JS bug with Django URI