adding js if recording is true