Oh, my memory is hazy here, but if I remember right, at the beginning Apple didn’t let them download executable code (companion js) to the app, so they just took a javascript code from every app in the pebble store, bundled it into Pebble iOS app, and updated it every few days with a fresh code.
Bonus fact: we didn’t actually read the bundled code - we downloaded it from the internet and ran it as usual. But a server-side check ensured you could only get the JavaScript we’d bundled.
Or at least it did until we eventually quietly turned off the check, when Apple stopped paying attention.
Can anyone confirm?