Updated bash.js

I forgot what I was programming in.
I cast i as an int instead of using var, also forgot to set it to a
value.