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