Javascript with evented I/O and physical computing