restore lost eventemitter2
use uglify to minimze js instead of require