Chnaged flyaway JS fucntion for testing.