add script to post performance to parent window if requested