Fix first part of stdserv.js. Still much to do.