Modified code to use the display modes from the config. Adjusted the player and js files.