Update connectedcomp.js