use selenium for javascript scenarios