A rhythm-based battle system in Node.js, Socket.io, and Enchant.js