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