I have the following code which interprets the numbers as strings and adds them like 100300 instead of 400:
var rate = document.getElementById(\'pur_price\')
var result = +pprice + + refurb;