refactor FunctionButton.js
filter file types in export button (fix #48)