Added tab-like functionality to stories.html. Abstracted some stuff to base.js, e.g. a window.getQueryParam function.