place javascript inside ng-click

JavaScript is just being evaluated inside of ng-click