added js unit tests for collections and event view;