Switch: Client side example for the book _Mastering D3.js_