@elliot commenting out line 10 just causes the error to move to line 11.
I notice that the quote marks are being escaped. So ajaxurl : '',
is ajaxurl : \'\'
in the browser.
Not sure if it’s a MEMORY_LIMIT issue, I’m on a shared host and have asked to be put on as high a limit as possible (which is 96M for my server)