JBIDE-16321 Smart DnD from jQuery Mobile Palette

Implemented insert of jQuery widget to the proper position,
closest to cursor.