Move js API code to own file.
Fix selecting news source.
Fix saving selected feeds.