This partial now takes a local variable, called "place" that refers to head or foot of document. All javascript is loaded from this partial, now.