Ajax call to see whether the sound has played