Fix StaffDebug javascript tests