old_contents: /**
   * various utility functions
   */
  angular.module(PKG.name+'.services').value('myHelpers', {
  
    /**
     * Parses milliseconds and converts to days, hours and minutes.
     * @param  {Number} milliseconds.
     * @return {Object} containing days, hours and minutes as keys.
     */
    parseMilliseconds: function parseMilliseconds (milliseconds) {
      var temp = milliseconds / 1000;
      return {
        days: Math.floor((temp %= 31536000) / 86400),
        hours: Math.floor((temp %= 86400) / 3600),
        minutes: Math.floor((temp %= 3600) / 60)
      };
    },
  
    /**
     * Get milliseconds from time object.
     * @param  {Object} timeObj with days, hours and mins as keys.
     * @return {Number} milliseconds.
     */
    concatMilliseconds: function concatMilliseconds (timeObj) {
      var total = 0;
      if ('days' in timeObj) {
        total += timeObj.days * 86400;
      }
      if ('hours' in timeObj) {
        total += timeObj.hours * 3600;
      }
      if ('minutes' in timeObj) {
        total += timeObj.minutes * 60;
      }
      return total * 1000;
    },
  
    /**
     * Get human readable string from milliseconds.
     * @return {String} readable millisecond display.
     */
    millisecondsToString: function (milliseconds) {
      var parsedTime = this.parseMilliseconds(milliseconds);
      var readableString = [];
      if (parsedTime.hasOwnProperty('days')) {
        readableString.push(parsedTime['days'] + ' days');
      }
      if (parsedTime.hasOwnProperty('hours')) {
        readableString.push(parsedTime['hours'] + ' hours');
      }
      if (parsedTime.hasOwnProperty('minutes')) {
        readableString.push(parsedTime['minutes'] + ' minutes');
      }
      return readableString.join(', ');
    }
  
  
  
  
  });
  
new_contents: /**
   * various utility functions
   */
  angular.module(PKG.name+'.services').value('myHelpers', {
  
    /**
     * Parses milliseconds and converts to days, hours and minutes.
     * @param  {Number} milliseconds.
     * @return {Object} containing days, hours and minutes as keys.
     */
    parseMilliseconds: function parseMilliseconds (milliseconds) {
      var temp = milliseconds / 1000;
      return {
        days: Math.floor((temp %= 31536000) / 86400),
        hours: Math.floor((temp %= 86400) / 3600),
        minutes: Math.floor((temp %= 3600) / 60)
      };
    },
  
    /**
     * Get milliseconds from time object.
     * @param  {Object} timeObj with days, hours and mins as keys.
     * @return {Number} milliseconds.
     */
    concatMilliseconds: function concatMilliseconds (timeObj) {
      var total = 0;
      if ('days' in timeObj) {
        total += timeObj.days * 86400;
      }
      if ('hours' in timeObj) {
        total += timeObj.hours * 3600;
      }
      if ('minutes' in timeObj) {
        total += timeObj.minutes * 60;
      }
      return total * 1000;
    },
  
    /**
     * Get human readable string from milliseconds.
     * @return {String} readable millisecond display.
     */
    millisecondsToString: function (milliseconds) {
      var parsedTime = this.parseMilliseconds(milliseconds);
      var readableString = [];
      if (parsedTime.hasOwnProperty('days')) {
        readableString.push(parsedTime.days + ' days');
      }
      if (parsedTime.hasOwnProperty('hours')) {
        readableString.push(parsedTime.hours + ' hours');
      }
      if (parsedTime.hasOwnProperty('minutes')) {
        readableString.push(parsedTime.minutes + ' minutes');
      }
      return readableString.join(', ');
    }
  
  
  
  
  });
  
subject: fix jshint