refactor play.js into play/*.js