Share function

  -encoding and decoding requests so we can have a link that shares the
regex match

  -moved page javascript to it's own file