moves js and css to root and updates hrefs and srcs in main template