Delete First Element Of An Array Javascript Append Function In Prolog