my code for the chrome extension