Update application.js to handle task creation as a form