This is the closest thing to a javascript implementation I have seen: http://xlab.tencent.com/special/spectre/js/check.js
from: http://xlab.tencent.com/special/spectre/spectre_check.html
from: http://xlab.tencent.com/special/spectre/spectre_check.html
That's not to say that removing SharedArrayBuffer (and high-precision performance timers, which were removed a couple years back to mitigate some other timing-related vulnerabilities) is enough to completely eliminate Spectre; there might be other methods that can time accurately enough to reveal information.
(I might be completely wrong here, but this is my current understanding of the situation, at least.)