replaced calls createTHead, createTFoot with manually created table sections since polyfills seem to be an issue.