trying to add a feature for suggested terms.  CODE IS GOTTEN FROM W3Schools.com but im modifying it for my uses