added export functionality, solved JSFileFilter bug and others