These methods call into templateJNEXT.js which handles the communication through the JNEXT plugin to template_js.cpp 
hello() returns version info
function (success, fail, args) {
		var userargs = JSON.parse(decodeURIComponent(args["userargs"]));
		success(template.getInstance().hello({userargs:userargs}));
	}