fixed javascript test.