updated the server and js templater