This sample page loads the railroad name from the socket server and listens if the railroad name is changed through JMRI's menu
It also provides a button to change the railroad name. You can change it here and check in JMRI to see it really changed.
Railroad name below will update in browser if changed in the application window