I put two functions into my javascript file and created a div and loaded json data