Add js to ensure query input stays filled