Demo with Tern plugin CordovaJS