Lag-solution

Added an interval to solve the lag that occured while typing. This lag
was caused because the giveSuggestions function was called directly
inside the onInput function.