IMPROVEMENT in file ajaxListener.php, change "elseif" to "else if" in javascript code