Implementation of jQuery events as messaging system finished.
Code cleaning.
Fixed error message on unsuccessful direction.