In the case of this web-player, the front-end provide the navigation interface, while the back-end provide the functionalities used by this interface. There is a separation already but it's not very clear in the current javascript code.