add conditonal check to determine whether to include screenrecorder js