add js files

basic server code