add jQuery function to load table rows dynamically