Hey Alex,
Currently there is a $PAGETEXT system variable in scripting. Can you please implement a $PAGETITLE variable, that stores the pages title?