Minor edit: Fixed broken example script

Fixed broken example script. Variable 'i' was not $'d