OK, I had assumed that the "page" mechanism was older, and that the "scripts" one is preferred. I can't find any docs to that effect however. I also like that using a js script mean fewer files, and fewer things to compile from dart -> js.