Update views.py

Added implementation to send HTML data in json format.