Add a few local declarations

I'm using strict in my game and it alerted me of a few missing locals.