Switch between tabs on “Insert Media” dialog

I found nothing better than:

// switch to attachment browser
wp.media.frame.content.mode('browse');
// refresh attachment collection
wp.media.frame.content.view.views._views[".media-frame-content"][0].views._views[""][1].collection.props.set({ignore:(+(new Date()))});

Feel free to add proper way of doing this.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)