This is really cool and something I've wondered about doing too. Has anyone gotten an entire GCC toolchain to 'compile' to JS using a tool like emscripten? It would be pretty neat to be able to compile AVR firmware and send it to an Arduino's bootloader right from the browser.