Included scripts in main page; updated partial to display data on click