Added method to do asynchronous AJAX request in shared.js file.