How to change some channel's info with javascript?

You need channel_editor for the update endpoint. Was that specified correctly during your login step?