What has to happen if elementId is undefined?
Updated dist JS