cleaned up play.js