Add chack owner or not owner status for js,
Echo favorites count and add sorting map