Commands manager for Javascript