convert app to AngularJS and add player logic