support custom remote port

In the LayerScope, we have to connect to custom remote port instead of debugger-socket. So I slightly modify main.js to support custom remote port.