Changing scripts to angularjs, adding participant