JavaScript connection