finished debugging onlyNumbers function; added a callback function to array.reduce()