Changes saving an entry through AJAX to handle request as array of entries