Auto complete functionality done with vanilla JavaScript