Fix button handlers initialization in application.js

[#54898726]