cleanup + use browser-filesaver in npm