use parseFloat instead of parseInt and fix initial update for IE