Fixes error generating minfied JS