Testpilot is a browser based unit testing framework for testing websites. With it you can record the keystrokes and mouse events for a session and play them back automatically. You can include assertions for values in inputs DIVs or JavaScript variables.
jECMAUnit is an ECMA (Javascript) unit testing framework that uses the underlying javascript engine and JUnit to perform the tests in java, allowing browser-less unit testing of javascript code