rework prototype to browser-based thingy