Define jQuery method in HTML