refactor js for toggeling answer references #5