Yeah. Two steps.
Step 1. You need to copy his block and insert it in the header "injection" area. You can do that with that particle page's "Settings > Advanced > Page header code injection".
Copy the <script src="library-url-reference-here"></script> tags into that area.
Step 2. Insert the "<script> // code </script>" directly in an HTML code block on your page. I know it's Java script but keep it as an HTML block in this fashion. Also make sure you turn off "Display source code".
Optional Step 3. see my comment viz. positioning.