Use callback instead of document#ready