Fixing Javascript so that correct answer is copied form previous year