Chrome extension posting function