Update lib.js

try fix position tooltip