Update src/directives/alert.js

cleaning up variables