Fix emit and preset js source