Putting the boat on a diet

In which 843 kilobytes become 468, and the biggest weight isn’t the JavaScript