serve the page only on valid gist ids
added description and adjusted to client-side mode