adds tipsy library, and working on error that var d is arr not obj