if you visit here: Example You will see my problem.
The page loads, then loads all the same content within a div id=content
content
Have a look at the sourc
You are incorrectly building fragment. In you code first letter truncated in query.
fragment
Correct code:
fragment = event.value.substring(2);