Use local third-party javascript for examples.

Move scripts from spec/lib into third_party, update references.