fix js file server, tidy up some output messages