WIP updated server_v3.js and code cleanup in jsx files