Refactor script.js to suppress error
Refactor script.js to suppress error

The navigation-pinning code was producing JS errors on non-activity pages, so this shuts it off if there's no navigation to pin. Also, some variable renaming to be more Javascripty.
concord-consortium/lara,concord-consortium/lara,concord-consortium/lara,concord-consortium/lara,concord-consortium/lara