Structural Changes and bug fix

Extra function to send a XMLHttpRequest
Extra function to define what to do, when the sound loads.
Bug with the array length fixed.