Generate JavaScript code for the UI buttons
Update the value of language on initialisation
Implement LinkPGCN command
Obviously the NAV packets must extracted before compiling to JS
Not all packets have commands
Still frames extraction to include the end of the last sector