Update LifeExpectancyFunction.js

Correcting parameters and arrays