Add timestamp to the given URL.
@param {string} url - The target URL.
@returns {string} The result URL.
function addTimestamp(url) {
  var timestamp = "timestamp=".concat(new Date().getTime());
  return url + (url.indexOf('?') === -1 ? '?' : '&') + timestamp;
}