refactor(core): adding disconnect and passing jshint