more fixes for old jquery