adding necessary callback call to getResult.js