Missing semicolon
Add new object for handling singletons
Fixes for jshint
Export renderHtml function and un-export singletons object
Merge pull request #376 from wch/singleton

Add exports.renderHtml function
use values instead of names for radioButtons due to #340

the problem was revealed from #377