Adding javaScriptType
Generating one method per attribute to make the renderer easily extendable