fix transcode js bug