Fixed JS to show different types of answers