tools: Cleaned up unit export to produce valid units.js file