Use window.alert() since it should be defined.
Merge pull request #4 from drewish/undefined-alert

Use window.alert() since it should be defined.