Whoops. Revert "JavaScript: fix SSL endpoints"

This reverts commit b162457f7728e3fbea5d64eceaaae468f09a36b5.

Whoops, I messed up.