You can add JavaScript libraries to your Pen through the JavaScript settings menu . There are two ways to access the JavaScript settings menu. For quickest access, click the gear icon in the upper left of the JS editor panel. That opens the Pen Settings menu with the JavaScript tab automatically selected.