check for django.jQuery existence before using it