Added autoplay functionality to loadFile().