Abstract out dictionary.onready