Fix file references and remotely load peer.js