added terabyte support

Tb should be supported because max JavaScript value is 8pb.