Using the relative url ``'next'`` makes this javascript sensitive to the exact path from which it was loaded. Consider pushing this url out to the ``settings.js`` template so that Django can calculate a non-brittle absolute url.