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
remove spaces inside parens, so `if (resource !== null) {`