 <p>The first error is strictly a client-side javascript error. The error description means exactly what it says. You should update your js appropriately.</p> <p>The second set of error message probably related to the fact you are making a cross-domain request for a javascript file which is not subject to your headers being sent by PHP. You would need to configure CORS on webserver for such endpoint</p>