Returns string value of the output
@param {Number} difference - difference from current in milliseconds
@param {Number} timeValue - unit being calculated ex. seconds: 1000
@param {string} pluralTimeName - plural name of time value ex. 'seconds'
@return {string} string of how long ago ex. '1 second ago' or '5 minutes ago'
function timeOutput(difference, timeValue, pluralTimeName) {
    let result = '';
    if (Math.round(difference / timeValue) === 1) {
        result = `1 ${pluralTimeName.substring(0, pluralTimeName.length - 1)} ago`;
    } else {
        result = `${Math.round(difference / timeValue)} ${pluralTimeName} ago`;
    }
    return result;
}