Fixing bug in the Javascript that only activated the first tooltip