Nowadays Javascript supports packed binary data natively. The only things that Javascript lacks is a 64-bit integer type. All other numeric types can safely be represented in a double.
JITs can also use integer types internally when possible (small integer optimization).