update javascript for questions