adapted the subtitle fixer code to a webform