Revert "Init map from script callback."

This reverts commit 38a1f050c4bee46e071945c19f8eb628624fabf0.