//automatically creates Manager
//not sure if this is a good idea
var cmf = new BLL.CommentManagerFactory(new DAL.CommentDAO());
var cm = cmf.build();


var commentsEvents = new PubSubBroker(
	'comment-posted',
	'comment-succeeded'
);

//binding
commentsEvents.subscribe('comment-posted', GUI, 'hideForm');
commentsEvents.subscribe('comment-posted', cm, 'send');
commentsEvents.subscribe('comment-succeeded', GUI, 'successComment');
