All information should be provided by Compass, or Compass API. The server and port (or monit backend URL) should not be in the JS source code
Bug watches keep track of this bug in other bug trackers.