Code multiplexing simulated with angularjs and raphaeljs