rearranged code, trying to play sound after onload complete