Nice although I think I prefer the style to separate the htm from the js
<template id='mytemplate'>
my data is {{data}}
</template>
<script>
doit('mytemplate', 'http://api.dribbble.com/.../shots')
// or jq plugin
$('#mytemplate').render('http://...');
</script>