adds JSON response helper function to django
modifies mainpage, adds navbar, adds bootstrap assets