Added support for other types of questions than yes/no. Optimized javascripts.