RTS game where you control your units with JavaScript