JavaScript function to create an array of call entries. Based on work by Eric Wendelin. Eric has updated his work, and posted it as a project here on GitHub. You’re likely better served by the code in that project.