fix emitted js