Cleaned up play.js