Update SweetAlert.js

You should use angular $window service instead of window.
Merge pull request #8 from Hypercubed/patch-1

Update SweetAlert.js