fixed minor error in viewgoal.js