javascript changes to save questions/answers