Import JQuery, fix incompatabilities