PubSub events in ionic

is there any way to get MediatorJs to work with ionic framework? I tried to include it in index.html like this under cordova.js import
<script src="lib/mediator/mediator.min.js"></script>
and in my app.js like this
angular.module('starter', ['ionic', 'starter.controllers', 'starter.services', 'ngCordova','mediator-js'])
but it didint work, please advise with any other alternative if its not possible to do so.

Thanks.