update example to support Chrome