Tribal Hero city planner in JavaScript