VE-1558 Template search UI

https://wikia-inc.atlassian.net/browse/VE-1558
I see that you are using suggestionsOffset to indicate in the scroll handler if you should request more results or not. It seems very unintuitive to me and makes implementation harder to read. Can you simplify it?