caption js fix