added some jquery and AJAX with CORS practices in there