Setting up a single page application