application.js: Add the play function