refactor, fixes for background, moving more things into shared js files
major refactor for ng side. screenshots not working