The javascript code there (see Kraignos) can be added to the Header Scripts area in Dashboard > PageLines > Site Options > Custom Code, and the stuff that's supposed to go into footer.php may be added to the Footer Scripts area in the same location. Scroll down below the Custom CSS area and you'll find Header Scripts and Footer Scripts areas there.

The javascript code there (see Kraignos) can be added to the Header Scripts area in Dashboard > PageLines > Site Options > Custom Code, and the stuff that's supposed to go into footer.php may be added to the Footer Scripts area in the same location. Scroll down below the Custom CSS area and you'll find Header Scripts and Footer Scripts areas there.