update ws-main.js for addfavoriteforbroser