A custom framework for single page applications