Update script.js

updating for proper mortgage formula
M = p * ((1+r)^t * r)/(1+r)^t - 1)