[OE-2955] moved theatre diary function into the appropriate js file.