Create LifeExpectancyFunction.js

Function to calculate life expectancy from set mortality rates