Update javascript test for new structure