use hook system for jQuery adapter