application.js: start to add play functionality