added start of Bacon.js port