Update modal.js

fixing bug for angular 1.3.x