moved file manipulation to webgettext.js