updating registerPreloadMethod and registerMethod sound disposal for p5.js