favoriting js worked on'