bug 1067854 - hide empty failure text when loading

also some code cleanup per ``jshint`` flags.