In an effort to detect malicious Javascript code, Microsoft is developing a tool named Zozzle, aimed to be embedded into the Javascript engine of a browser.
The authors claim that it is both fast and efficient with a very low rate of false positive.
Here is the report for more details.