Refactoring of the sample to use Ractive.js