rewrite addfarorite in ws_main.js