(bugfix) Fix textbox replacement

Prior to this commit, if a user typed something into the textbox then
wanted to use one of the example queries, the textbox wouldn't change
text. This commit fixes that by using jquerys .val function.