Try this
var easyBB = {
spellCheck: function(b,xxx) {
$('textarea').on('keyup',function() {
var list = xxx.words;
var wordTyped = $(this).val();
$('#responsiveWords').html(""); // reset the list
if(wordTyped === "") return; // check we have something otherwise you get all results here.
for (var i = 0; i < list.length; i++) {
if(list[i].indexOf(wordTyped) === 0){
$('#responsiveWords').append($("<li>"+list[i]+"</li>")); // create and append items
}
}
});
}
};
easyBB.spellCheck(true,
{ words:[
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
]});