Use backbone. Add connectView and move connect handler there.