JS is just one important piece in how modern browser fingerprinting works. You need to look into it. It's fascinating.
Discussion
Many non js ways to do it.
Etags, header fingerprinting, css, cache, ..
Disabled JavaScript is one extra bit for fingerprinting BTW