code: function bufferToString(buffer) {
  	        // base64-arraybuffer
  	        var bytes = new Uint8Array(buffer);
  	        var base64String = '';
  	        var i;
  
  	        for (i = 0; i < bytes.length; i += 3) {
  	            /*jslint bitwise: true */
  	            base64String += BASE_CHARS[bytes[i] >> 2];
  	            base64String += BASE_CHARS[(bytes[i] & 3) << 4 | bytes[i + 1] >> 4];
  	            base64String += BASE_CHARS[(bytes[i + 1] & 15) << 2 | bytes[i + 2] >> 6];
  	            base64String += BASE_CHARS[bytes[i + 2] & 63];
  	        }
  
  	        if (bytes.length % 3 === 2) {
  	            base64String = base64String.substring(0, base64String.length - 1) + '=';
  	        } else if (bytes.length % 3 === 1) {
  	            base64String = base64String.substring(0, base64String.length - 2) + '==';
  	        }
  
  	        return base64String;
  	    }
docs: Converts a buffer to a string to store, serialized, in the backend storage library.