set up basic javascript for 2 servers