reset after status is posted

resets the window.passthis  variable to empty once the function is
complete.
Removed some old commented out lines as well