browserify module for building widgets with templates and event delegation