Trying to fix js compilation on production