I am getting the syntax error:
SyntaxError: missing ) after argument list
From this jQuery code:
$(\'#contentData\').append
For me, once there was a mistake in spelling of function
For e.g. instead of
$(document).ready(function(){ });
I wrote
$(document).ready(funciton(){ });
So keep that also in check