Cross origin Ajax requests now working