updated browser sample and attempt to improve pubspec constraints