Fixed order of JS imports

JS imports were ending up in arbitrary order when rendered in the
template. Changed the names to allow for explicit ordering, and sorted
them when arranging them.
Status Job ID Name Coverage
  Test
passed #208694

00:00:23