Adding list function to array proto