some basic implementation of configuration and background music

the config might not be quite the direction you want to go but it's some basic so that one can start implementing the ui for the config
    if (resource === null) {
      audio.pause();
    } else {
        ...
    }