js global dict now function