started process of moving sentences js to angular from jquery