code: function(value)
  	{
  		value = value + '';
  		var len = YamlEscaper.escapees.length;
  		var maxlen = YamlEscaper.escaped.length;
  		var esc = YamlEscaper.escaped;
  		for (var i = 0; i < len; ++i)
  			if ( i >= maxlen ) esc.push('');
  
  		var ret = '';		
  		ret = value.replace(new RegExp(YamlEscaper.escapees.join('|'),'g'), function(str){
  			for(var i = 0; i < len; ++i){
  				if( str == YamlEscaper.escapees[i] )
  					return esc[i];
  			}
  		});
  		return '"' + ret + '"'; 
  	}
docs: Escapes and surrounds a JS value with double quotes.
  
  @param string value A JS value
  
  @return string The quoted, escaped string