Replaced jquery with angularjs