fix: re-load js lib on connect
fix: use plain js for old proxy and antivirus