Updated views.py with the beginnings of json rednering