Fixed javascript test runner