changed keys in helper object and is typeof in getPercentage() function replaced by isNaN() function as requested