Add parameter check to details_shim()

Fall back to details_shim.init() if no DOM Element passed