Well this could help towards detecting, but there are good Dean Edwards packed and malicious Dean Edwards packed javascripts. With JS malware the main line of analysis is still being done manually - that is looking at the individual piece of malcode or recognizing a general attack sequence,
jsunpack and other tools can help towards de-obfuscation, but this deobfuscation is not needed if features are carefully extracted then obfuscated malicious code is found as easily (OCRF project - Eric Ching-Hao Ph.D),
polonus