remove files tree from component.js for testing. fix #1509

see #1509