webapp: add setText

Added a simple setText API - it's the inverse of the getText added a few days ago.