Moved slider.js and websocket.js to template-file