swapped out HttpResponse for JsonResponse
replace HttpResponse w/ JsonResponse

+ fallback for Django<1.7