a JavaScript reactive-programming implementation