KineticJS integration with AngularJS as a directive