Php Api Call Using Curl In Javascript Semicolons