add browser-only regression tests for #207
fix #207
grunt dist