refactor js functions on server side
automatic json stringify for messages