Fix a brittle test by reading the value over jQuery