fix travis js tests error