code: function(value)
  	{
  		if ( undefined == value || null == value )
  			return 'null';	
  		if ( value instanceof Date)
  			return value.toISOString();
  		if ( typeof(value) == 'object')
  			return this.dumpObject(value);
  		if ( typeof(value) == 'boolean' )
  			return value ? 'true' : 'false';
  		if ( /^\d+$/.test(value) )
  			return typeof(value) == 'string' ? "'"+value+"'" : parseInt(value);
  		if ( this.isNumeric(value) )
  			return typeof(value) == 'string' ? "'"+value+"'" : parseFloat(value);
  		if ( typeof(value) == 'number' )
  			return value == Infinity ? '.Inf' : ( value == -Infinity ? '-.Inf' : ( isNaN(value) ? '.NAN' : value ) );
  		var yaml = new YamlEscaper();
  		if ( yaml.requiresDoubleQuoting(value) )
  			return yaml.escapeWithDoubleQuotes(value);
  		if ( yaml.requiresSingleQuoting(value) )
  			return yaml.escapeWithSingleQuotes(value);
  		if ( '' == value )
  			return '""';
  		if ( this.getTimestampRegex().test(value) )
  			return "'"+value+"'";
  		if ( this.inArray(value.toLowerCase(), ['null','~','true','false']) )
  			return "'"+value+"'";
  		// default
  			return value;
  	}
docs: Dumps a given JS variable to a YAML string.
  
  @param mixed value The JS variable to convert
  
  @return string The YAML string representing the JS object