cleanup ajax and sockjs parts