Prototype-based mutable objects for R, based on io and javascript