auto complete finally working as intended - js saves current page on overy document ready and reappends it if search fails