Move Javascript away from renderd HTML into its own file, change logic to use DOM classes instead of IDs, and automatically append a trailing forward slash to settings.TAGGIT_AUTOCOMPLETE_MEDIA_URL if it doesn't have one