adding ext.onready function