Update foundation.alert.js

fix on-the-fly alert