refactor chrome extension, improve load times