adding addFrameScript