JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://underscorejs.org/underscore-min.js"></script>
<script src="https://raw.github.com/documentcloud/backbone/master/backbone.js"></script>

JavaScript

var View = Backbone.View.extend({
  initialize: function(options) {
    setInterval(_(function() {
      this.trigger('tick');
    }).bind(this), 1000);
      
    this.on('tick', function() {
      document.write('tick ');
    }, this);
  }
});
        
var view = new View();
view.render();
view.remove();