removed some unecessary code from content script