Got AJAX working for sharing