submit.js: alert when empty