adding disconnect from js