Fix JS error on new spec page