Fix calls to fully connect again. Also fix jshint errors