bug with Recovering not being defined and throwing js exception 

This will follow the same pattern found else where in the code.