Get diffrent code format for machine add dialog js