Architecture of plastic.js