Ticket 21725 tests

Deprecate django.utils.text.javascript_quote and added some regression tests for the reported issue (which was fixed in a previous commit).