Comment out commands non implemented to generate valid JavaScript only
Add a new pass to extract menu config