Added a js function to load content into the page