How do you run JS on a watch with 64KB of RAM? How do you reverse engineer a watch to put your own firmware on it?

This is wizardry.

youtu.be/fq753pg5wRo