fixing bug with js edit answer