moved js dirs, made jsonrpc asynchronous