TV mode: tests following a failed test are viewed as failing too

The CSS class 'fail' is never removed, caused by a bad usage of the jquery removeClass function.