Converting to singular page web app