Remove useless txt='' and share md5 function more wisely

This commit has no breaking changes. md5.js still can be used in browser, but now it is also strict mode compatible. CommonJS support is a little bonus.