fixes ajax for favorites
Merge pull request #44 from otters-2014/ajaxfavorites

fixes ajax for favorites