Script for reactive text functions