Completed rename example
Added example JS