Testing PhoneGap using this JS version of a mortgage calc.