first processing js connection