fixed broken js tests