use this as an example for chrome extension