Changed parseInt to to parseFloat.