Rewrote document load function for music player initialization.