init correctly in both Chrome and Dartium