Transform webapp to single page app