Separate out keep* routines.

Rename upward.js to Upw.js.