chrome extension and standalone javascript