change function name to renderDataTable
remove the event handlers from main js code, put into example app code