Update Application.js

added eventlisteners