change ajax call to fix embed