javascript for server