Write js to http-files folder
Simplified generated server code.