js/expert-magic-suggest-script.js updated with validation