Collecting class properties in js reflection