Fixing cross domain ajax requests