You can execute the script code in render
event. And you can include the script in the html file itself...
ex:
var Bookmark = Backbone.View.extend({
template: _.template(…),
render: function() {
this.$el.html(this.template(this.model.attributes));
return this;
}
});