Create sse-discover.js

Determines whether SSE is during building