Modified displayResult() in specHelper.js