Make phase 'jscode' run before 'terminal'.
Cache result of scalajs-corejslib/package-js.

This is useful because then scalajs-library/package
does not need to be executed when nothing changes,
which in turns does not trigger its dependencies to
be recompiled.