Allow basket URL to be passed into JS init fn

This allows Django's reverse function to be used to correctly look up
the path for basket AJAX requests.

Fixes #644 - thanks to @jvanveen for spotting this issue.