Code cleanup
Allow tag renderer to be a module that exports a function
Use setProperty() to avoid NPE