Unable to view media library grid mode and save ajax options

After doing some updates on my site I am no longer able to view the media library in Grid mode. it just keeps spinning, this also happens when saving options that use AJAX.