Write Javascript in .hbs fils

Hi.I have writen a plugin and my plugin is working with an outlet.
in my connector (.hbs folder) I have accessed the username I want by typing {{username}}.

<script type="text/javascript">
	var temp = Handlebars.compile('{{username}}');
	var username = temp({});
	var likes;
	Handlebars.registerPartial('username', '{{username}}');
 	$.getJSON("http://localhost:3000/users/"+ username +"/summary.json", function (data) {
 		likes = data.summary.likes_received;
  	});
 </script>

when I alert likes variable it works well but now I want to show it on outlet.how can I do it(I don’t know anything about emberJS)

can you provide more information?

what do you want to do exactly? do you want to show the alert on the outlet or what?

How Can I show the likes in this outlet(this is a connector for plugin)