Testable JavaScript