I can undo this change. However, there is no javascript error if sbt.Endpoints is undefined, it just fails silently, and at least this way we have some feedback of where in the code it is failing and we can debug and easily find that sbt.Endpoints is undefined. The sbt object already exists though.