Fixed broken example script - Minor edit

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