Form calculations not working properly in Safari Browser.