Create app.js

javascript for the submit for alert