refactored and moved code from infoWindowContent.js to the Traffic module library.