Syntax error

Syntax error

I have this error

Uncaught SyntaxError: missing ) after argument list

This jquery is nestled into my JS code. When I remove this JQUERY code it works fine.
  1. $(funtion (){
  2. $.ajax({
  3. type: 'GET',
  4. url: 'test.php',
  5. sucess: function(data){
  6. container.innerHTML += "<div class=\"library-item-photo\"><img src=\"image-files/cover-thumb-md.php?ID=4059\" class=\"library-img\"></a></div>  ";
  7. }
  8. });
  9. });