added production fix to app websocket port

If location.port is 80 (production) we will set port to 443 else we are
goind to use the same port of the whole page. This is used to make
WebSockets available on the cellular network.