Declare first var to avoid implicit global
Merge pull request #13 from zakangelle/master

Declare `first` variable to avoid implicit global