Moving javascript to a per-page basis.