Instead of printing it in a JS scriplet inline. Also add a modal popup while the initial connection is being established Also make the max frame rate to be configured