javascript tests and stuff