FED-202: adding back code to clear stale js variables on reset.