Fix JSON serialisation problem with AJAX basket

six.moves.map returns itertools.imap which won't serialize to JSON.
This commit unpacks the list into a normal list of strings to circumvent
the issue.
Rename AJAX helper method

The `to_json` method returns a dict, not a string!