minimal change to make it pass jshint

I only changed the bare minimum to allow it to pass jshint. I don't think declaring beforeOffset and afterOffset on line 145 will make any meaningful changes