Fix #28 Create collector on browser end instead