Wow, really great stuff! I wrote something similar for my high school a few years ago (back when I was less experienced with programming -- ack!). I used a library called JSCPP to interpret the C++ directly in the browser.
It included analogRead() and Serial functionality; maybe it can give you some ideas regarding the UI.