declare local variable scope

Looks like the semis are typos, that you were meant to declare each var locally.