Small fixes to javasscript in apps for META initialisations