function reverse( str ) {
	var out;
	var i;

	out = '';
	for ( i = str.length - 1; i >= 0; i-- ) {
		out += str[ i ];
	}
	return out;
}
Reverses the UTF-16 code units of a string.

@param {string} str - input string
@returns {string} output string

@example
var out = reverse( 'last man standing' );
// returns 'gnidnats nam tsal'

@example
var out = reverse( 'presidential election' );
// returns 'noitcele laitnediserp'

@example
var out = reverse( 'JavaScript' );
// returns 'tpircSavaJ'

@example
var out = reverse( 'Hidden Treasures' );
// returns 'serusaerT neddiH'