corrected tooltip bug and removed foundation.js dependency