creates SPA sturcture of html/js