fix positioning

fix positioning when the autocomplete window collides with window border.
uses jquery UI's own method of position collision solving.