Fix: Symbol's value as variable is void: while

I use Emacs 24.4.1. 
When I tried to use your plugin the following error raised: Symbol's value as variable is void: while.
Proposed changes fixed the error for me.

PS: thanks for useful plugin!