How to write low garbage real-time Javascript – Scirra.com