Correct syntax jquery accordion

Correct syntax jquery accordion

I use jquery accordion and it work properly, but I'd like to know if I used the correct syntax.

Here is the code:
  1. <head>
  2. <script>
  3.   $(function() {
  4.     $( "#accordion" ).accordion({
  5.        icons: { "header": "ui-icon-circle-triangle-e", "activeHeader": "ui-icon-circle-triangle-s" },
  6.        collapsible: true ,
  7.        active: true
  8.      });
  9.   });
  10. </script>
  11. </head>