initialize the Django and use javascript to display