Programming a social robot using Cycle.js