consolidate js and make some participant pages in angularjs