Refactoring blaze.js.