debugger was complaining about this, fixed as a test, might as well check it in.
Merge pull request #250 from EliAndrewC/fix_undefined_var

undefined var fix