Pause playback (setInterval?)

Hi all, I have a very straight forward piece I’m working on that involves copy fading in and out but, instead of using the time-line for timings I’d like to use some script. Can anyone help me out?
It’s just copy fades in (hold for three seconds) then fades out (hold for one second) copy fades in (hold for three seconds) etc…