script now ranks articles properly