Neil Mix has implemented support for threads in Javascript 1.7. To do this he used Python style generators, that were introduced in Javascript 1.7, and the trampolining technique.
If you are interested check out his post, the example and the implementation. The code only runs on Firefox 2 since it is the only browser that supports Javascript 1.7.