A javascript implementation of a Harel Statechart.