Code running inside chrome extension check