json and html modal

add js function to footer modal to handle json and html reference.