introduce correct JS date add function