JavaScript calculations complete