change Modal reference to $ionicModal

Without this change I was getting a ModalProvider not found error when trying to run the example under the Creating Tasks heading. It appears that the example under the Adding Projects heading has a similar issue.