Update modal.js

add timeout before setting scope.animate = false; to make sure the modal backdrop's scope gets applied.