Modified logview.js to add code to ensure that data is fetched only once via Ajax call. Used $.data() to store fetched flag.