moves drawViz into jquery onready