javascript test fixes