Add AJAX to add media page