stop adding extra line break when building locales.js

fixes #1090